package org.example.command;

import org.example.editor.Editor;

public class SwitchCommand implements Command {

    private Editor editor;
    private Integer fileNumber;
    public SwitchCommand(Editor editor,Integer fileNumber){
        this.editor = editor;
        this.fileNumber = fileNumber;
    }
    @Override
    public void excute() {
        editor.switchFile(fileNumber);
    }
}
